package com.sl.au.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * 外贸价格单页面
 */
@Entity
@Table(name = "sl_crm_quoteForeign")
public class QuoteForeign extends AuditRoot {
	/** 创建者 */
	@ManyToOne
	private User user;
	/** 项目名称 */
	@Column(name = "sName")
	private String name;
	
	@Column(name = "sCustomerId")
	private String customerId;

	/** 客户名称 */
	@Column(name = "sCustomerName")
	private String customerName;
	
	/** 备注 */
	@Column(name = "sMemo")
	private String memo;
	
	/** 交货日期 */
	@Column(name = "DdeliveryDate")
	@Temporal(TemporalType.TIMESTAMP)
	private Date deliveryDate;
	
	/**付款方式 */
	@Column(name = "sPayment")
	private String payment;
	
	/**有效期 */
	@Column(name = "sValidity")
	private String validity;
	/** 产品价格币种 */
	@Column(name = "sCurrency")
	private String currency;
	/** 总原价 */
	@Column(name = "nCostSum")
	private float costSum;
	/** 总报价 */
	@Column(name = "nProductSum")
	private float productSum;
	/** 总价折扣比例 */
	@Column(name = "nProductRatio")
	private float productRatio;
	/** 总价折扣金额 */
	@Column(name = "nProductOff")
	private float productOff;
	/** 包装费 */
	@Column(name = "nPackPrice")
	private float packPrice;
	/** 出口方式 */
	@Column(name = "sExportWay")
	private String exportWay;
	/** 包装折扣比例 */
	@Column(name = "nPackRatio")
	private float packRatio;
	/** 包装折扣金额 */
	@Column(name = "nPackOff")
	private float packOff;
	/** 拟报价 */
	@Column(name = "nSum")
	private float sum;
	/** 报价说明*/
	@Column(name = "sQuoteExplain")
	private String quoteExplain;	
	/** 附件数*/
	@Transient
	private int attachNumber;


	/** 是否新产品、特殊行业、成套装置 */
	@Column(name = "sIsNewProduct")
	private String isNewProduct;
	
	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public String getPayment() {
		return payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}

	public String getValidity() {
		return validity;
	}

	public void setValidity(String validity) {
		this.validity = validity;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public float getProductSum() {
		return productSum;
	}

	public void setProductSum(float productSum) {
		this.productSum = productSum;
	}

	public float getProductOff() {
		return productOff;
	}

	public void setProductOff(float productOff) {
		this.productOff = productOff;
	}

	public float getPackPrice() {
		return packPrice;
	}

	public void setPackPrice(float packPrice) {
		this.packPrice = packPrice;
	}

	public String getExportWay() {
		return exportWay;
	}

	public void setExportWay(String exportWay) {
		this.exportWay = exportWay;
	}

	public float getPackOff() {
		return packOff;
	}

	public void setPackOff(float packOff) {
		this.packOff = packOff;
	}

	public float getSum() {
		return sum;
	}

	public void setSum(float sum) {
		this.sum = sum;
	}

	public float getProductRatio() {
		return productRatio;
	}

	public void setProductRatio(float productRatio) {
		this.productRatio = productRatio;
	}

	public float getPackRatio() {
		return packRatio;
	}

	public void setPackRatio(float packRatio) {
		this.packRatio = packRatio;
	}

	public String getIsNewProduct() {
		return isNewProduct;
	}

	public void setIsNewProduct(String isNewProduct) {
		this.isNewProduct = isNewProduct;
	}

	public float getCostSum() {
		return costSum;
	}

	public void setCostSum(float costSum) {
		this.costSum = costSum;
	}

	public String getQuoteExplain() {
		return quoteExplain;
	}

	public void setQuoteExplain(String quoteExplain) {
		this.quoteExplain = quoteExplain;
	}
	public Integer getAttachNumber() {
		return attachNumber;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public void setAttachNumber(int attachNumber) {
		this.attachNumber = attachNumber;
	}
	
	
}
